package bedside;

import javax.swing.JFrame;

import bedside.gui.BedsideMonitorDisplay;

import common.BedsideMonitor;

public class BedsideMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		BedsideMonitor bedside = new BedsideMonitor();
		
		BedsideMonitorDisplay bedsideDisplay = new BedsideMonitorDisplay( bedside.getVitals() );
		
		bedside.registerVitalListener(bedsideDisplay);
		
		JFrame booyah = new JFrame();
		booyah.add(bedsideDisplay);
		booyah.pack();
		booyah.setVisible(true);

	}

}
